package com.fashiontextile.designer.service;

import com.fashiontextile.common.entity.R;
import com.fashiontextile.designer.entity.Designer;
import com.fashiontextile.designer.entity.DesignerWorks;
import com.fashiontextile.designer.entity.WorksAlbum;
import com.fashiontextile.user.entity.Comment;

import java.util.List;

public interface DesignerService {
    Integer insertDesigner(Designer designer);

    Integer updateDesignerInfo(Designer newdesignerInfo, long uid);

    Long getFdidByUid(long uid);

    Integer addAlbum(WorksAlbum worksAlbum);

    Integer updateAlbum(WorksAlbum worksAlbum);

    boolean isExistAlbum(long waid);

    Integer updataAlbumState(long waid);

    R<?> addDesignerWork(DesignerWorks designerWorks);

    boolean isExistWorks(long dwid);

    boolean updateWorksByDwid(DesignerWorks designerWorks, long dwid);

    Integer updataworksState(long dwid);

    Designer selectDesignerByid(long fdid);

    List<WorksAlbum> getAllAlbumByFdid(long fdid);

    WorksAlbum getAlbumAndWorks(long waid);

    DesignerWorks getWorksByDwid(long wdid);

    Designer getDesignerByUid(long uid);

    List<Designer> getDesigner(Integer num, String type);

    R<?> getWorksS(String sort, Integer num);

    R<?> CommentWorks(Long dwid,Comment comment,Long uid);

    R<?> selectCommentByctid(Long ctid);

    List<Comment> handParentChildreComment(List<Comment> parentCommentst,List<Comment> allChildreComment);

    R<?> addPopularity(Long dwid);
}
